.cropPlan-layout {
  display: flex;
  flex-direction: column;
  .title {
    background: #eee;
    height: 35px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    h3 {
      font-weight: normal;
      color: #000;
    }
    .closer {
      margin-left: 100px;
      color: #000;
      &::after {
        content: '✖';
        position: absolute;
        right: 3px;
        top: 3px;
      }
    }
  }
}

.ant-select-dropdown-menu-item {
  font-size: 1rem;
}

.croptabs {
  // padding-top: 1.3em;
  .ant-tabs-nav-container,
  .ant-tabs,
  .ant-select,
  .ant-input,
  .ant-btn,
  .ant-table {
    font-size: 1rem;
  }
  .ant-tabs-nav-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .croptabs-info {
    margin: 20px 0;
  }
  input:focus {
    border-color: #40a9ff;
    outline: 0;
    -webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    border-right-width: 1px !important;
  }
  .ant-tabs-bar {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d4d8db;
    margin-bottom: 0;
    .ant-tabs-extra-content {
      line-height: 1em;
    }
    .ant-tabs-nav {
      padding-left: 2em;
      .ant-tabs-tab {
        color: #666666;
        border: 1px solid #d4d8db;
        border-right: none;
        margin-right: 0; // padding: .5em 1.2em;
        padding: .7em;
        line-height: 1;
        height: 30px;
        &:last-child {
          border-right: 1px solid #d4d8db;
        }
      }
      .ant-tabs-tab-active {
        color: #666666; // background-color: #fff;
        border-bottom: none;
      }
      .ant-tabs-ink-bar {
        transition: unset;
        background-color: #fff;
      }
    }
  }
  .ant-tabs-content {
    .ant-table-body {
      margin:0;
      >table {
        padding: 0;
        tr {
          td,
          th {
            padding: 0 !important;
            &.column {
              padding-left: .5em !important;
            }
            height: 25px;
            text-align: center; // height: 25px;
            &.hidden {
              display: none;
            }
            input {
              text-align: center;
              font-size: 1rem;
            }
            .ant-select-selection {
              margin-top: 1px;
              border: none;
            }
          }
          &[data-row-key='3'] {
            input {
              border: none; // width: 80px;
              height: 23px;
            }
          }
        }
      }
    }
    .ant-table-small {
      border: none;
      thead {
        tr {
          th:nth-child(1) {
            border-left: 1px solid #e8e8e8 !important;
          }
        }
      }
      tbody {
        tr {
          td:nth-child(1) {
            border-left: 1px solid #e8e8e8 !important;
          }
        }
        tr:last-child {
          td {
            border-bottom: 1px solid #e8e8e8 !important;
            &.noBottomBorder {
              border-bottom: none !important;
            }
            &.noRightBorder {
              border-right: none !important; // border-left: 1px solid #e8e8e8 !important;
            }
            &.noLeftBorder {
              border-left: none !important; // border-left: 1px solid #e8e8e8 !important;
            }
          }
        }
      }
    }
  }
  .ant-table-footer {
    padding: 0; // border-bottom: none;
  }
  .ant-table-placeholder {
    padding: 5px 0;
  }
  .action {
    display: flex;
    align-items: center;
    justify-content: center;
    button {
      border: none;
      outline: none;
      background-color: #fff;
    }
    div {
      width: 82px;
      height: 28px;
      margin: 1em;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #fff;
    }
  }
}

.units {
  display: flex;
  align-items: center;
  margin: 0;
  color: #999999;
  margin-right: 1em;
  li {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .active {
    padding: 0.46em; // border: 1px solid #ccc;
    border-radius: .23em;
    color: #468dc8;
  }
  span {
    color: #d8d8d8;
    margin: 0 0.5em;
  }
}

.tab-content {
  // width: 1050px;
  margin: 0 auto;
  padding: 1em 1em 0 1em;
  .analyze {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    .ant-table-wrapper {
      width: 650px;
      td {
        vertical-align: middle;
      }
    }
    .details {
      display: flex;
      flex-wrap: wrap;
      width: 295px; // align-content: space-around; // justify-content: space-around;
      justify-content: space-around;
      .input-group {
        display: flex;
        margin-top: 0.3em;
        align-items: center;
        &:nth-child(2n-1) {
          width: 100px;
        }
        &:nth-child(2n) {
          width: 140px;
        }
        label {
          width: 60px; // margin-right: 5px;
          text-align: right;
          line-height: 2.8em;
          font-size: 1rem;
        }
        input {
          width: 90px;
          border: 1px solid #ccc;
          text-align: center;
          height: 25px;
          padding: 0;
        }
      }
    }
  }
  .plans {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    .plan {
      flex-basis: 49%;
    }
  }
  .delivery-descibe {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    .delivery {
      flex-basis: 100%;
    }
  }
}

.tfooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan,
.delivery {
  position: relative;
  .button {
    width: 60px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #428bca;
    margin: -20px 0 0 2px;
    span {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    &:hover {
      background-color: #147494;
    }
  }
  .ant-table-wrapper {
    margin-top: 1em;
    table {
      padding: 0 !important;
      td,
      th {
        width: 85px; // min-width: 85px;
        height: 35px;
        text-align: center;
        input {
          width: 100%;
          border: none;
          height: 25px;
          text-align: center;
        }
      }
    }
  }
}

.ant-table-tbody>tr:hover>td {
  background-color: unset;
}

.planSummary,
.summary {
  .ant-table {
    border: none;
    .border {
      border-left: 1px solid rgb(232, 232, 232);
      border-bottom: 1px solid rgb(232, 232, 232) !important;
    }
    .borderRight {
      border-right: 1px solid rgb(232, 232, 232);
    }
  }
}

.delivery,
.plan {
  // margin-top: 1em;
  .ant-table-wrapper {
    margin-top: 0em;
  }
  .addAction {
    position: absolute;
  }
  margin-bottom: 1em; // .ant-table-tbody {
}

.plan-descibe {
  display: flex;
  align-items: flex-start;
  padding-left: 1em;
  textarea {
    width: calc(100% - 36px);
    height: 50px;
    border-color: rgb(232, 232, 232);
    padding: .2em;
  }
}

.ant-table-bordered.ant-table-empty .ant-table-placeholder {
  border-right: none;
}

.column {
  width: 80px;
}

.statistics {
  .ant-table-thead {
    th {
      background-color: #f3f0f0 !important;
    }
  }
  tr:nth-child(2n) {
    td {
      background-color: #f3f0f0;
    }
  }
  td {
    input {
      width: 80px;
    }
  }
}

.plan:nth-of-type(1) {
  >.ant-table-wrapper {
    .ant-table-title {
      background-color: #e9f3df;
    }
  }
}

.plan,
.delivery {
  >.ant-table-wrapper {
    .ant-table-title {
      // 
      background-color: #f3f0f0;
      color: #666;
    }
    tr:nth-child(2n-1) {
      input {
        background-color: #f3f0f0;
        padding: 0;
      }
      td,
      .ant-select-selection {
        background-color: #f3f0f0;
      }
    }
    tr:last-child {
      td,
        {
        background-color: #fff;
        &.unStandard {
          background-color: #eeac56 !important;
        }
      }
    }
  }
}

.anticon-calendar {
  display: none;
}

.operation-hover {
  img {
    cursor: pointer;
  }
}

.plan {
  position: relative;
  .in-units {
    position: absolute;
    right: 5px;
    top: 5px;
    ul {
      display: flex;
      align-items: center;
      span {
        margin: 0 0.6em;
      }
      li {
        cursor: pointer;
        padding: 0.23em;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #888888;
        &.active {
          // border: 1px solid #f1f1f1;
          border-radius: .5em;
          color: #468dc8;
        }
      }
    }
  }
}

.statistics {
  table {
    tbody {
      tr:first-child {
        td {
          font-weight: bold;
          color: #000;
        }
      }
    }
  }
}

.statistics,
  {
  tbody {
    tr {
      td.column {
        text-align: left !important;
        margin-left: .1em !important;
      }
    }
  }
}